package com.kcht.sylyg08.service.impl;

import com.kcht.sylyg08.service.IGetMaterialInfoFromMes;
import com.kcth.sylyg08.entity.Material;

import javax.enterprise.context.RequestScoped;
import javax.transaction.Transactional;
import java.util.ArrayList;
import java.util.List;

/**
 * @Package: com.kcht.sylyg08.service.impl
 * @Description: 从MES系统获取物料信息
 * @Author: lenovo
 * @CreateDate: 2019/5/20 14:24
 */
@RequestScoped
@Transactional()
public class GetMaterialInfoFromMes implements IGetMaterialInfoFromMes {
    @Override
    public Material getMaterialInfoFromMes(Material material) throws Exception {
        //List<Material> l = new ArrayList<>();
        //Material material2 = new Material("320301450873","982323423232","320301450873伊利婴儿",null);
        Material material1 = new Material("145087332030","423232982323","伊利145087332030婴儿",null);

        //l.add(material2);
        //l.add(material1);

        return material1;
    }
}
